<?
#####arquivo de configuracao
session_start("webcosts");
function formata_data($d){
    $data = substr($d,6,4)."-".substr($d,3,2)."-".substr($d,0,2).substr($d,10,9);
	return $data;
}
function data_view($d){
    $data = substr($d,8,2)."-".substr($d,5,2)."-".substr($d,0,4).substr($d,10,9);
	return $data;
}
function formata_valor($valor){
	return number_format( $valor, 2, ",", ".");
}

$referencia = "/webcosts/";

?>